home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000083_jaltman@watsun.cc.columbia.edu_Fri Nov 15 11:26:48 EST 2002.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
3KB
|
58 lines
Article: 13850 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: C-Kermit FTP script
Date: 15 Nov 2002 14:35:56 GMT
Organization: Columbia University
Lines: 41
Message-ID: <ar30oc$4sh$1@newsmaster.cc.columbia.edu>
References: <8ce22d01.0211131301.2d2c8112@posting.google.com> <8ce22d01.0211132107.1a569739@posting.google.com> <ar0j7k$ea6$1@watsol.cc.columbia.edu> <8ce22d01.0211142213.f427a53@posting.google.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1037370956 5009 128.59.39.2 (15 Nov 2002 14:35:56 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 15 Nov 2002 14:35:56 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13850
In article <8ce22d01.0211142213.f427a53@posting.google.com>,
Dan Skinner <JDanSkinner@JDanSkinner.com> wrote:
: Yup;
: Appreciated and agreed. BUT I would expect a function for which any
: part failed to yield a negative return code and which might allow me
: to check more thourghly if I care. If I can't use the result of the
: open in a subsequent function the result of the open should be fail?
: Regards...Dan.
Kermit commands are implemented to serve dual purposes
. be convenient for interactive use
. be scriptable
These two purposes are often at odds. The FTP OPEN command is an
example. For interactive use the FTP OPEN command is overloaded
with numerous automatic behaviors that can take place after
successful completion:
autologin
autoauthentication
autoencryption
None of these secondary functions can be tested with IF FAILURE.
Instead they either must be tested by using variables or by
disabling the automatic behaviors and executing them manually.
For the FTP OPEN command to set the status to FAILURE after
a connection to the server was opened, but because the autologin
failed would leave the session with an OPEN connection. Subsequent
FTP OPEN commands would then fail because there was already an open
session.
The script would not realize it must execute an FTP CLOSE command.
Jeffrey Altman * Sr.Software Designer Kermit 95 2.0 GUI available now!!!
The Kermit Project @ Columbia University SSH, Secure Telnet, Secure FTP, HTTP
http://www.kermit-project.org/ Secured with MIT Kerberos, SRP, and
kermit-support@columbia.edu OpenSSL.